package javaNet.blocking;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;

public class Client {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("192.168.0.1",6543);
        OutputStream outputStream =socket.getOutputStream();
        String msg="客户端信息";
        byte[] bytes = msg.getBytes();
        outputStream.write(bytes);
        outputStream.close();
        socket.close();
    }
}
